package com.lc.question.service.impl;

import com.lc.question.service.IPlanService;
import com.lc.question.dao.IPlanDao;
import com.lc.question.pojo.Plan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("planService")
public class PlanServiceImpl implements IPlanService {

    @Autowired
    IPlanDao planDao;

    @Override
    public List<Plan> planAll(Plan plan) {
        return planDao.planAll(plan);
    }

    @Override
    public List<Plan> findPlanByAnything(Plan plan) {
        return planDao.findPlanByAnything(plan);
    }

    @Override
    public int planTotal(Plan plan) {
        return planDao.planTotal(plan);
    }

    @Override
    public List<Plan> findPlan_CROTime(Plan plan, int page, int total) {
        return planDao.findPlan_CROTime(plan,page,total);
    }

    @Override
    public List<Plan> findPlan_OROTime(Plan plan, int page, int total) {
        return planDao.findPlan_OROTime(plan,page,total);
    }

    @Override
    public List<Plan> findPlan_COTime(Plan plan, int page, int total) {
        return planDao.findPlan_COTime(plan,page,total);
    }

    @Override
    public List<Plan> findPlan_OOTime(Plan plan, int page, int total) {
        return planDao.findPlan_OOTime(plan,page,total);
    }

    @Override
    public List<Plan> findPlanByName(Plan plan) {
        return planDao.findPlanByName(plan);
    }

    @Override
    public List<Plan> findPlanByTid(int tab_Id) {
        return planDao.findPlanByTid(tab_Id);
    }

    @Override
    public Plan findPlanByPid(int plan_Id) {
        return planDao.findPlanByPid(plan_Id);
    }

    @Override
    public void updatePlan(Plan plan) {
        planDao.updatePlan(plan);
    }

    @Override
    public void addPlan(Plan plan) {
        planDao.addPlan(plan);
    }

    @Override
    public void deletePlan(int plan_Id) {
        planDao.deletePlan(plan_Id);
    }
}
